def sloveyz():
    n = int(input('请输入一个整数：'))
    a = []
    for i in range(2,n):
        if n%i==0:
            a.append(i)
    print('{}的因子为:{}'.format(n,a))
if __name__ == '__main__':
    for n in range(10,1,-1):
        for i in range(2,n):
            if n%i==0:
                break;
        else:print(n)


